<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-model的修饰符</title>
</head>
<script src="../js/vue.js"></script>
<body>

<div id="app">
    lazy
    <input type="text" v-model.lazy="msg">
    <h2>{{msg}}</h2>

    number
    <input type="number" v-model.number="number">
    <h2>{{typeof number}}</h2>

    trim
    <input type="text" v-model.trim="str">
    <h2>{{str}}</h2>
</div>

</body>

<script>
    const vue = new Vue({
        'el': '#app',
        'data': {
            msg: '',
            number: 0,
            str: ''
        },
        'methods': {}
    })
</script>
</html>